package com.ruiysoft.entity.statement;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author liyahui
 * @since 2019-01-17
 */
@TableName("statement_user_detail")
public class StatementUserDetail extends Model<StatementUserDetail> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 关联statement_id
     */
    @TableField("statement_id")
    private Long statementId;

    /**
     * 店铺id
     */
    @TableField("shop_id")
    private Long shopId;

    /**
     * 用户id
     */
    @TableField("user_id")
    private Long userId;

    /**
     * 交易号
     */
    @TableField("trade_no")
    private String tradeNo;

    /**
     * 状态（1，开始，2，进行，3，完成）
     */
    private Integer status;

    /**
     * 业务时间
     */
    @TableField("work_date")
    private Date workDate;

    /**
     * 凭证图片
     */
    @TableField("voucher_path")
    private String voucherPath;

    /**
     * 凭证号（微信提现流水）
     */
    @TableField("voucher_no")
    private String voucherNo;

    public Long getId() {
        return id;
    }

    public StatementUserDetail setId(Long id) {
        this.id = id;
        return this;
    }
    public Long getStatementId() {
        return statementId;
    }

    public StatementUserDetail setStatementId(Long statementId) {
        this.statementId = statementId;
        return this;
    }
    public Long getShopId() {
        return shopId;
    }

    public StatementUserDetail setShopId(Long shopId) {
        this.shopId = shopId;
        return this;
    }
    public Long getUserId() {
        return userId;
    }

    public StatementUserDetail setUserId(Long userId) {
        this.userId = userId;
        return this;
    }
    public String getTradeNo() {
        return tradeNo;
    }

    public StatementUserDetail setTradeNo(String tradeNo) {
        this.tradeNo = tradeNo;
        return this;
    }
    public Integer getStatus() {
        return status;
    }

    public StatementUserDetail setStatus(Integer status) {
        this.status = status;
        return this;
    }
    public Date getWorkDate() {
        return workDate;
    }

    public StatementUserDetail setWorkDate(Date workDate) {
        this.workDate = workDate;
        return this;
    }
    public String getVoucherPath() {
        return voucherPath;
    }

    public StatementUserDetail setVoucherPath(String voucherPath) {
        this.voucherPath = voucherPath;
        return this;
    }
    public String getVoucherNo() {
        return voucherNo;
    }

    public StatementUserDetail setVoucherNo(String voucherNo) {
        this.voucherNo = voucherNo;
        return this;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "StatementUserDetail{" +
        "id=" + id +
        ", statementId=" + statementId +
        ", shopId=" + shopId +
        ", userId=" + userId +
        ", tradeNo=" + tradeNo +
        ", status=" + status +
        ", workDate=" + workDate +
        ", voucherPath=" + voucherPath +
        ", voucherNo=" + voucherNo +
        "}";
    }
}
